<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>dinic: Fichero Fuente edge.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generado por Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="annotated.html"><span>Estructuras&nbsp;de&nbsp;Datos</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Buscar" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;archivos</span></a></li>
      <li><a href="globals.html"><span>Globales</span></a></li>
    </ul>
  </div>
<h1>edge.h</h1><a href="edge_8h.html">Ir a la documentación de este archivo.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00005"></a>00005 <span class="preprocessor">#ifndef EDGE_H</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define EDGE_H</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="node_8h.html" title="&amp;lt; Estructura y funciones del nodo &amp;gt;">node.h</a>&quot;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00010"></a>00010 <span class="comment">/* Sin esto da errores de compilacion*/</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00012"></a>00012 
<a name="l00017"></a><a class="code" href="edge_8h.html#a9ab049f197eb4697968d205fc311e549">00017</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs__edge.html" title="Esta estructura es utilizada para representar las aristas de los networks.">s_edge</a> *<a class="code" href="structs__edge.html" title="Esta estructura es utilizada para representar las aristas de los networks.">edge</a>;
<a name="l00018"></a>00018 
<a name="l00025"></a>00025 edge <a class="code" href="edge_8c.html#a35f1d802100f946ac7f1e4ab668cadcd" title="Crea una nueva arista.">edge_create</a>(<a class="code" href="structs__node.html" title="Esta estructura representa un nodo.">node</a> <a class="code" href="structs__edge.html#a0766cb4214817210cfdd2cda21258745">nd</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structs__edge.html#a3013a95e83caa1579b44f5152435eff1">capacity</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structs__edge.html#a6ac42b82c23722c789b3977936e08781">flow</a>, 
<a name="l00026"></a>00026                    <span class="keywordtype">bool</span> <a class="code" href="structs__edge.html#aada41730a710f699982bdd451db11e7c">backward</a>);
<a name="l00027"></a>00027 
<a name="l00034"></a>00034 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="edge_8c.html#a77782a8913c3721c45dd0da26026844e" title="Getter del atributo capacity de la arista.">edge_get_capacity</a>(edge e);
<a name="l00035"></a>00035 
<a name="l00042"></a>00042 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="edge_8c.html#a2fa8a11fa0ffb898553f9edb0518fb58" title="Getter del atributo flow de la arista.">edge_get_flow</a>(edge e);
<a name="l00043"></a>00043 
<a name="l00050"></a>00050 <span class="keywordtype">bool</span> <a class="code" href="edge_8c.html#a2d26a9af80ff8366a786b8b40b0f993e" title="Getter del atributo backward de la arista.">edge_get_backward</a>(edge e);
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 
<a name="l00059"></a>00059 <a class="code" href="structs__node.html" title="Esta estructura representa un nodo.">node</a> <a class="code" href="edge_8c.html#ab4d9e0a33224e3cd6e497a416803b4a4" title="Getter del atributo nd de la arista.">edge_to</a>(edge e);
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 
<a name="l00068"></a>00068 edge <a class="code" href="edge_8c.html#aa463942aee51b227d6df6ebc6c9750b5" title="Destructor de una instancia de arista.">edge_destroy</a>(edge e);
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 
<a name="l00076"></a>00076 <span class="keywordtype">void</span> <a class="code" href="edge_8c.html#a2c71f11c8332665f5f49065ec488fa75" title="Setter del atributo capacity de la arista.">edge_set_capacity</a>(edge e, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structs__edge.html#a3013a95e83caa1579b44f5152435eff1">capacity</a>);
<a name="l00077"></a>00077 
<a name="l00083"></a>00083 <span class="keywordtype">void</span> <a class="code" href="edge_8c.html#a397c67a973b65a5b302f6d812608e735" title="Setter del atributo flow de la arista.">edge_set_flow</a>(edge e, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structs__edge.html#a6ac42b82c23722c789b3977936e08781">flow</a>);
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 
<a name="l00091"></a>00091 <span class="keywordtype">void</span> <a class="code" href="edge_8c.html#a05db788c8ed838419abcbbab1b977ea9" title="Setter del atributo backward de la arista.">edge_set_backward</a>(edge e, <span class="keywordtype">bool</span> status );
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 
<a name="l00102"></a>00102 edge <a class="code" href="edge_8c.html#aa456461fe8a949d040da7497e41d0dbe" title="Obtiene una arista entre x e y (forward).">edge_find_node_forw</a>(<a class="code" href="structs__node.html" title="Esta estructura representa un nodo.">node</a> x, <a class="code" href="structs__node.html" title="Esta estructura representa un nodo.">node</a> y);
<a name="l00103"></a>00103 
<a name="l00112"></a>00112 edge <a class="code" href="edge_8c.html#ada14539d2bd172cadba6ee2b89c2742a" title="Obtiene una arista entre x e y (backward).">edge_find_node_back</a>(<a class="code" href="structs__node.html" title="Esta estructura representa un nodo.">node</a> x, <a class="code" href="structs__node.html" title="Esta estructura representa un nodo.">node</a> y);
<a name="l00113"></a>00113 
<a name="l00114"></a>00114 
<a name="l00115"></a>00115 <span class="preprocessor">#endif</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Estructuras de Datos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Tipos definidos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Definiciones</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generado el Mon Jun 6 20:15:28 2011 para dinic por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
